package cc.magicjson.example.demo.task.optional;

public class EDFStrategy implements SchedulingStrategy {
    @Override
    public int compare(PriorityScheduledTask t1, PriorityScheduledTask t2) {
        return Long.compare(t1.getDeadline(), t2.getDeadline());
    }
}